package patternmining.model.construction;

import java.io.File;
import patternmining.model.construction.ModelData;

/**
 * @version 1.0, 10.05.2008
 * @author Holger Wiehen
 */
public abstract class Source {

    public abstract ModelData modelData();
    
    public static boolean isJavaSourceFile(File file){
        String fileName = file.getName();
        return fileName.endsWith(".java");
    }
    
    public static boolean isBPSLDefinitionFile(File file){
        String fileName = file.getName();
        return fileName.endsWith(".bpsl");
    }
    
    
}
